<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SVDConv utility</title>
<title>CMSIS-SVD: SVDConv utility</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="cmsis.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="printComponentTabs.js"></script>
<script type="text/javascript" src="cmsis_footer.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 46px;">
  <td id="projectlogo"><img alt="Logo" src="CMSIS_Logo_Final.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">CMSIS-SVD
   &#160;<span id="projectnumber">Version 1.3.9</span>
   </div>
   <div id="projectbrief">CMSIS System View Description</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<div id="CMSISnav" class="tabs1">
    <ul class="tablist">
      <script type="text/javascript">
		<!--
		writeComponentTabs.call(this);
		//-->
      </script>
	  </ul>
</div>
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Usage&#160;and&#160;Description</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('svd_SVDConv_pg.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">SVDConv utility </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><b>SVDConv</b> is a command-line utility to validate CMSIS-SVD files and to generate CMSIS-compliant device header files. <b>SVDConv</b> is distributed with the <b>ARM::CMSIS</b> Pack (in the CMSIS\Utilities directory) together with the <b>CMSIS-SVD.xsd</b> schema file. <b>SVDConv</b> is available for Windows and Linux operating systems.</p>
<p><b>SVDConv</b> performs the following operations:</p>
<ul>
<li>Checks the syntactical and structural compliance with the specified CMSIS-SVD format.</li>
<li>Checks the consistency, correctness, and completeness of the CMSIS-SVD file against the CMSIS-SVD schema file.</li>
<li>Generates CMSIS-compliant device header files, which can be used for software development.</li>
</ul>
<dl class="section note"><dt>Note</dt><dd>Consider using --strict option to receive all pedantic warnings. Some rules are skipped by default due to backward compatibility reasons. All newly developed/updated SVD files should rather respect all rules.</dd></dl>
<h2>Operation </h2>
<p><b>SVDConv</b> is invoked form the command line. The general command format is: </p>
<div class="fragment"><div class="line">SVDConv.exe &lt;SVD_file&gt; &lt;options&gt;</div>
</div><!-- fragment --><p>&#160;</p>
<table  class="cmtable" summary="SVDConv Args">
<tr>
<th>&lt;options&gt; </th><th>Short Name </th><th>Description  </th></tr>
<tr>
<td><em>none</em>  </td><td>Validation </td><td>Perform a validation check of the SVD file. Errors and warnings are printed on screen.   </td></tr>
<tr>
<td>-b  </td><td>Log File </td><td>Specify the log file name for writing messages. Default: screen.   </td></tr>
<tr>
<td>-o  </td><td>Output Path </td><td>Specify an output path for the generated device header file or log file. Default: current directory.   </td></tr>
<tr>
<td>--generate=header  </td><td>Generate Device Header File </td><td>Generates the device header file. The name of the generated file is derived from the value of the tag &lt;devicename&gt; in the CMSIS-SVD file. Refer to <a class="el" href="elem_device.html">device</a>.   </td></tr>
<tr>
<td>--generate=partition  </td><td>Generate Partition file for Cortex-M Security Extensions (Armv8-M) </td><td>Generates the device partition file. The name of the generated file is composed of <em>partition_</em> and the value of the device <em>&lt;name&gt;</em> (for example, <em>partition_CMSDK_ARMv8MBL.h</em>). Refer to <a class="el" href="elem_device.html">/device element</a>. The content of the file uses Configuration Wizard annotations and is derived from the SAU-specific information of the <a class="el" href="elem_cpu.html#elem_sauRegionsConfig">/device/cpu/sauRegionsConfig element</a> and the interrupts specified in the <a class="el" href="elem_peripherals.html">/device/peripherals element</a>.  </td></tr>
<tr>
<td>--fields=enum  </td><td>Bit-field Enums </td><td>Generates enum lists for each field value description contained in the CMSIS-SVD input file. Must be used in combination with <em>--generate=header</em>.  </td></tr>
<tr>
<td>--fields=macro  </td><td>Bit-field Macros </td><td>Generates position and mask C-Macros for each field description contained in the CMSIS-SVD input file. Must be used in combination with <em>--generate=header</em>.  </td></tr>
<tr>
<td>--fields=struct  </td><td>Bit-field Structs </td><td>Generates bit fields for each field description contained in the CMSIS-SVD input file. Must be used in combination with <em>--generate=header</em>.  </td></tr>
<tr>
<td>--fields=struct-ansic  </td><td>ANSI Bit-field Structs </td><td>Generates MISRA-compliant structures for each bitfield. The generated code <b>is not CMSIS-compliant</b>! Must be used in combination with <em>--generate=header</em>.  </td></tr>
<tr>
<td>--strict </td><td>Strict error checking </td><td><b>RECOMMENDED!</b> Applies strict error checking and generates a lot more messages.  </td></tr>
</table>
<h2>Return Codes </h2>
<p><b>SVDConv</b> returns the following codes: <br/>
</p>
<table class="doxtable">
<tr>
<th align="center">Code </th><th align="left">Description </th><th align="left">Action  </th></tr>
<tr>
<td align="center">0 </td><td align="left">OK </td><td align="left">No action required. Validation and conversion performed without errors. </td></tr>
<tr>
<td align="center">1 </td><td align="left">WARNINGS </td><td align="left">Warnings should be checked an possibly removed. The header file is created and could be used. </td></tr>
<tr>
<td align="center">2 </td><td align="left">ERRORS </td><td align="left">Errors in the SVD description file. Important elements are missing and must be corrected. </td></tr>
<tr>
<td align="center">3 </td><td align="left">Error in command line </td><td align="left">Check and correct the command line arguments. </td></tr>
</table>
<p><b>Examples</b> <br/>
</p>
<ol type="1">
<li>Retrieve help information on screen. <div class="fragment"><div class="line">SVDConv </div>
</div><!-- fragment --> <br/>
</li>
<li>Perform a consistency check by passing only the SVD file name. Errors and warnings are printed on screen. <div class="fragment"><div class="line">SVDConv ARM_Example.svd </div>
</div><!-- fragment --> <br/>
 The result is printed on screen: <pre class="fragment">   MVCM3110.svd(1688) : info
   &lt;description&gt; missing for value '2 : MODE2'
   MVCM3110.svd(1692) : info
   &lt;description&gt; missing for value '3 : MODE3'
   MVCM3110.svd(1696) : info
   &lt;description&gt; missing for value '4 : MODE4'
   Area of improvements:
   * Description contains 267 &lt;fields&gt; defined without associated &lt;enumeratedValues&gt;
   Found 0 Errors and 1 Warnings
   Return Code: 1 (WARNINGS)</pre> <br/>
</li>
<li>Generate the header file. Performs a consistency check. Errors and warnings are printed on screen. <div class="fragment"><div class="line">SVDConv ARM_Example.svd --generate=header</div>
</div><!-- fragment --> <br/>
 Code snippet from the generated header file showing the structure for <b>TIMER0</b>. <br/>
 <div class="fragment"><div class="line"><span class="comment">/* ================                     TIMER0                     ================ */</span></div>
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{                                    </div>
<div class="line">  __IO uint32_t  CR;                                </div>
<div class="line">  __IO uint16_t  SR;                                </div>
<div class="line">  __I  uint16_t  RESERVED0[5];</div>
<div class="line">  __IO uint16_t  INT;                               </div>
<div class="line">  __I  uint16_t  RESERVED1[7];</div>
<div class="line">  __IO uint32_t  COUNT;                             </div>
<div class="line">  __IO uint32_t  MATCH;                             </div>
<div class="line">  <span class="keyword">union </span>{</div>
<div class="line">    __O  uint32_t  PRESCALE_WR;                     </div>
<div class="line">    __I  uint32_t  PRESCALE_RD;                     </div>
<div class="line">  };</div>
<div class="line">  __I  uint32_t  RESERVED2[9];</div>
<div class="line">  __IO uint32_t  RELOAD[4];                         </div>
<div class="line">} TIMER0_Type;</div>
</div><!-- fragment --> <br/>
</li>
<li>Generate the header file containing bit fields. Performs a consistency check. Errors and warnings are printed on screen. <div class="fragment"><div class="line">SVDConv ARM_Example.svd --generate=header --fields=<span class="keyword">struct</span></div>
</div><!-- fragment --> <br/>
 Code snippet from the generated header file showing the structure for <b>TIMER0</b>. <br/>
 Compare to the code snippet above. <div class="fragment"><div class="line"><span class="comment">/* ================                     TIMER0                     ================ */</span></div>
<div class="line"><span class="keyword">typedef</span> <span class="keyword">struct </span>{                                    </div>
<div class="line">  <span class="keyword">union </span>{</div>
<div class="line">    __IO uint32_t  CR;                              </div>
<div class="line">    <span class="keyword">struct </span>{</div>
<div class="line">      __IO uint32_t  EN         :  1;               </div>
<div class="line">      __O  uint32_t  RST        :  1;               </div>
<div class="line">      __IO uint32_t  CNT        :  2;               </div>
<div class="line">      __IO uint32_t  MODE       :  3;               </div>
<div class="line">      __IO uint32_t  PSC        :  1;               </div>
<div class="line">      __IO uint32_t  CNTSRC     :  4;               </div>
<div class="line">      __IO uint32_t  CAPSRC     :  4;               </div>
<div class="line">      __IO uint32_t  CAPEDGE    :  2;               </div>
<div class="line">           uint32_t             :  2;</div>
<div class="line">      __IO uint32_t  TRGEXT     :  2;               </div>
<div class="line">           uint32_t             :  2;</div>
<div class="line">      __IO uint32_t  RELOAD     :  2;               </div>
<div class="line">      __IO uint32_t  IDR        :  2;               </div>
<div class="line">           uint32_t             :  3;</div>
<div class="line">      __IO uint32_t  S          :  1;               </div>
<div class="line">    } CR_b;                                         </div>
<div class="line">  };</div>
<div class="line">  </div>
<div class="line">  <span class="keyword">union </span>{</div>
<div class="line">    __IO uint16_t  SR;                              </div>
<div class="line">    <span class="keyword">struct </span>{</div>
<div class="line">      __I  uint16_t  RUN        :  1;               </div>
<div class="line">           uint16_t             :  7;</div>
<div class="line">      __IO uint16_t  MATCH      :  1;               </div>
<div class="line">      __IO uint16_t  UN         :  1;               </div>
<div class="line">      __IO uint16_t  OV         :  1;               </div>
<div class="line">           uint16_t             :  1;</div>
<div class="line">      __I  uint16_t  RST        :  1;               </div>
<div class="line">           uint16_t             :  1;</div>
<div class="line">      __I  uint16_t  RELOAD     :  2;               </div>
<div class="line">    } SR_b;                                         </div>
<div class="line">  };</div>
<div class="line">  __I  uint16_t  RESERVED0[5];</div>
<div class="line">  </div>
<div class="line">  <span class="keyword">union </span>{</div>
<div class="line">    __IO uint16_t  INT;                             </div>
<div class="line">    <span class="keyword">struct </span>{</div>
<div class="line">      __IO uint16_t  EN         :  1;               </div>
<div class="line">           uint16_t             :  3;</div>
<div class="line">      __IO uint16_t  MODE       :  3;               </div>
<div class="line">    } INT_b;                                        </div>
<div class="line">  };</div>
<div class="line">  __I  uint16_t  RESERVED1[7];</div>
<div class="line">  __IO uint32_t  COUNT;                             </div>
<div class="line">  __IO uint32_t  MATCH;                             </div>
<div class="line">  <span class="keyword">union </span>{</div>
<div class="line">    __O  uint32_t  PRESCALE_WR;                     </div>
<div class="line">    __I  uint32_t  PRESCALE_RD;                     </div>
<div class="line">  };</div>
<div class="line">  __I  uint32_t  RESERVED2[9];</div>
<div class="line">  __IO uint32_t  RELOAD[4];                         </div>
<div class="line">} TIMER0_Type;</div>
</div><!-- fragment --></li>
</ol>
<h1><a class="anchor" id="svdconvMessages"></a>
Error and Warning Messages</h1>
<p>The following table shows the errors and warnings issued by svdconv.</p>
<h2>Help messages </h2>
<table  class="cmtable" summary="svdconv Invocation Msgs">
<tr>
<th>Message Number </th><th>Type </th><th>Message Text </th><th>Details/Action  </th></tr>
<tr>
<td>M020 </td><td>TEXT</td><td><em>SVD_STRING_OPTIONS</em> </td><td>Displays programm help. </td></tr>
<tr>
<td>M021 </td><td>TEXT</td><td><em>'DESCR'</em> <em>'VER'</em> <br/>
 <em>'COPYRIGHT'</em> </td><td>Displays module name 'DESCR', version 'VER' and copyright information 'COPYRIGHT'. </td></tr>
<tr>
<td>M022 </td><td>TEXT</td><td>Found <em>'ERR'</em> Error(s) and <em>'WARN'</em> Warning(s).</td><td>Displays the number of errors/warnings. </td></tr>
<tr>
<td>M023 </td><td>TEXT</td><td>Phase <em>'CHECK'</em> </td><td>Information about the check phase. </td></tr>
<tr>
<td>M024 </td><td>TEXT</td><td>Arguments: <em>'OPTS'</em> </td><td>Specify arguments. </td></tr>
</table>
<h2>Informative messages </h2>
<table  class="cmtable" summary="Info Messages">
<tr>
<th>Message Number </th><th>Type </th><th>Message Text </th><th>Details/Action  </th></tr>
<tr>
<td>M040 </td><td>Info</td><td><em>'NAME'</em>: <em>'TIME'</em> ms. Passed</td><td></td></tr>
<tr>
<td>M041 </td><td>Info</td><td>Overall time: <em>'TIME'</em> ms.</td><td></td></tr>
<tr>
<td>M050 </td><td>Info</td><td>Current Working Directory: <em>'PATH'</em> </td><td></td></tr>
<tr>
<td>M051 </td><td>Info</td><td>Reading SVD File: <em>'PATH'</em> </td><td></td></tr>
<tr>
<td>M061 </td><td>Info</td><td>Checking SVD Description</td><td></td></tr>
</table>
<h2>Invocation errors </h2>
<table  class="cmtable" summary="Internal and Invocation Errors">
<tr>
<th>Message Number </th><th>Type </th><th>Message Text </th><th>Action  </th></tr>
<tr>
<td>M101 </td><td>ERROR</td><td>Unknown error!</td><td>Please contact support. </td></tr>
<tr>
<td>M102 </td><td>ERROR</td><td>MFC initialization failed</td><td>Please contact support. </td></tr>
<tr>
<td>M103 </td><td>ERROR</td><td>Internal Error: <em>'REF'</em> </td><td>Please contact support. </td></tr>
<tr>
<td>M104 </td><td>CRITICAL</td><td><em>'MSG'</em> </td><td>Please contact support. </td></tr>
<tr>
<td>M105 </td><td>ERROR</td><td>Cannot add Register to group sorter: <em>'NAME'</em> </td><td></td></tr>
<tr>
<td>M106 </td><td>ERROR</td><td>Command <em>'NAME'</em> failed: <em>'NUM'</em>: <em>'MSG'</em> </td><td></td></tr>
<tr>
<td>M107 </td><td>ERROR</td><td>Lost xml file stream.</td><td>Check SVD file. </td></tr>
<tr>
<td>M108 </td><td>ERROR</td><td>SfrDis not supported.Disassembly not supported.</td><td></td></tr>
<tr>
<td>M109 </td><td>ERROR</td><td>Cannot find <em>'NAME'</em> </td><td>Check specified file. </td></tr>
<tr>
<td>M111 </td><td>PROGRESS</td><td><em>'NAME'</em> failed</td><td>Check specified file. </td></tr>
<tr>
<td>M120 </td><td>ERROR</td><td>Invalid arguments!</td><td>Provide a list of valid arguments. </td></tr>
<tr>
<td>M121 </td><td>ERROR</td><td>File not found <em>'NAME'</em> Check specified file.</td><td></td></tr>
<tr>
<td>M122 </td><td>ERROR</td><td>Name of command file should follow <em>'@'</em> </td><td>Check specified command. </td></tr>
<tr>
<td>M123 </td><td>ERROR</td><td>File not found: <em>'PATH'!</em> </td><td>Check speficied path. </td></tr>
<tr>
<td>M124 </td><td>ERROR</td><td>Cannot execute SfrCC2: <em>'PATH'!"</em> </td><td>Check path to SfrCC2. </td></tr>
<tr>
<td>M125 </td><td>WARNING</td><td>SfrCC2 report: <br/>
 <em>'MSG'</em> <br/>
 SfrCC2 report end.</td><td></td></tr>
<tr>
<td>M126 </td><td>WARNING</td><td>SfrDis: <em>'MSG'</em> </td><td></td></tr>
<tr>
<td>M127 </td><td>ERROR</td><td>SfrCC2 reports errors!</td><td>Check SVD file. </td></tr>
<tr>
<td>M128 </td><td>WARNING</td><td>SfrCC2 reports warnings!</td><td>Check SVD file. </td></tr>
<tr>
<td>M129 </td><td>ERROR</td><td>Option unknown: <em>'OPT'</em> </td><td>Check given option <em>'OPT'</em>. </td></tr>
<tr>
<td>M130 </td><td>ERROR</td><td>Cannot create file <em>'NAME'</em> </td><td>Check user rights. </td></tr>
<tr>
<td>M132 </td><td>ERROR</td><td>SfrCC2 report: <br/>
 <em>'MSG'</em> <br/>
 SfrCC2 report end."</td><td></td></tr>
</table>
<h2>Validation errors </h2>
<table  class="cmtable" summary="Validation Errors">
<tr>
<th>Message Number </th><th>Type </th><th>Message Text </th><th>Action  </th></tr>
<tr>
<td>M201 </td><td>ERROR</td><td>Tag &lt;<em>'TAG'&gt;</em> unknown or not allowed on this level."</td><td>Check tag </td></tr>
<tr>
<td>M202 </td><td>ERROR</td><td>Parse error: &lt;<em>'TAG'&gt;</em> = <em>'VALUE'</em> </td><td>Check tag/value. </td></tr>
<tr>
<td>M203 </td><td>ERROR</td><td>Value already set: &lt;<em>'TAG'&gt;</em> = <em>'VALUE'</em> </td><td>Check tag/value. </td></tr>
<tr>
<td>M204 </td><td>ERROR</td><td>Parse Error: <em>'VALUE'</em> </td><td>Check value. </td></tr>
<tr>
<td>M205 </td><td>WARNING</td><td>Tag &lt;<em>'TAG'&gt;</em> empty</td><td>Assign value to tag. </td></tr>
<tr>
<td>M206 </td><td>ERROR</td><td>DerivedFrom not found: <em>'NAME'</em> </td><td>Check derivate. </td></tr>
<tr>
<td>M207 </td><td>ERROR</td><td>Expression marker found but no &lt;dim&gt; specified: <em>'NAME'</em> </td><td>Specify dimension. </td></tr>
<tr>
<td>M208 </td><td>ERROR</td><td>Ignoring &lt;dimIndex&gt; because specified &lt;name&gt; requires Array generation.</td><td>Generate an array. </td></tr>
<tr>
<td>M209 </td><td>WARNING</td><td>CPU section not set. This is required for CMSIS Headerfile generation and debug support.</td><td>Add CPU section. </td></tr>
<tr>
<td>M210 </td><td>WARNING</td><td>Use new Format CMSIS-SVD &gt;= V1.1 and add &lt;CPU&gt; Section.</td><td>Update schema and add CPU section. </td></tr>
<tr>
<td>M211 </td><td>ERROR</td><td>Ignoring <em>'LEVEL'</em> <em>'NAME'</em> (see previous message)</td><td></td></tr>
<tr>
<td>M212 </td><td>ERROR</td><td>Address Block &lt;usage&gt; parse error: <em>'NAME'</em> </td><td>Correct address block. </td></tr>
<tr>
<td>M213 </td><td>ERROR</td><td>Expression for <em>'NAME'</em> incomplete, &lt;<em>'TAG'&gt;</em> missing.</td><td>Add tag. </td></tr>
<tr>
<td>M214 </td><td>ERROR</td><td>Peripheral <em>'NAME'</em> &lt;dim&gt; single-instantiation is not supported (use Array instead).</td><td>Correct Regs to Reg[s]. </td></tr>
<tr>
<td>M215 </td><td>WARNING</td><td>Size of &lt;dim&gt; is only one element for <em>'NAME'</em>, is this intended?</td><td>Check single element. </td></tr>
<tr>
<td>M216 </td><td>WARNING</td><td>Unsupported character found in <em>'NAME'</em> : <em>'HEX'</em>.</td><td>Correct name. </td></tr>
<tr>
<td>M217 </td><td>WARNING</td><td>Forbidden Trigraph '??CHAR' found in <em>'NAME'</em>.</td><td></td></tr>
<tr>
<td>M218 </td><td>WARNING</td><td>Unsupported ESC sequence found in <em>'NAME'</em> : <em>'CHAR'</em>.</td><td>Correct escape sequence. </td></tr>
<tr>
<td>M219 </td><td>ERROR</td><td>C Code generation error: <em>'MSG'</em> </td><td></td></tr>
<tr>
<td>M220 </td><td>WARNING</td><td>C Code generation warning: <em>'MSG'</em> </td><td></td></tr>
<tr>
<td>M221 </td><td>WARNING</td><td>Input filename must end with .svd: <em>'NAME'</em> </td><td>Correct input filename extension. </td></tr>
<tr>
<td>M222 </td><td>WARNING</td><td>Input filename has no extension: <em>'NAME'</em> </td><td>Correct input filename extension. </td></tr>
<tr>
<td>M223 </td><td>ERROR</td><td>Input File Name <em>'INFILE'</em> does not match the tag &lt;name&gt; in the &lt;device&gt; section: <em>'NAME'</em> </td><td>Correct the MCU name. </td></tr>
<tr>
<td>M224 </td><td>WARNING</td><td>Deprecated: <em>'NAME'</em> Use <em>'NAME2'</em> instead</td><td>Update SVD file. </td></tr>
<tr>
<td>M225 </td><td>ERROR</td><td>Upper/lower case error: <em>'NAME'</em>, should be <em>'NAME2'"</em> </td><td>Update SVD file. </td></tr>
<tr>
<td>M226 </td><td>ERROR</td><td>SFD Code generation error: <em>'MSG'</em> </td><td></td></tr>
<tr>
<td>M227 </td><td>WARNING</td><td>SFD Code generation warning: <em>'MSG'</em> </td><td></td></tr>
<tr>
<td>M228 </td><td>ERROR</td><td>Enumerated Value Container: Only one Item allowed on this Level!</td><td>Remove additional items. </td></tr>
<tr>
<td>M229 </td><td>ERROR</td><td>Register <em>'NAME'</em> is not an array, &lt;dimArrayIndex&gt; is not applicable</td><td>Correct SVD. </td></tr>
<tr>
<td>M230 </td><td>ERROR</td><td>Value <em>'NAME'</em>:<em>'NUM'</em> out of Range for <em>'LEVEL'</em> <em>'NAME2'</em>[<em>'NUM2'</em>].</td><td>Correct SVD. </td></tr>
<tr>
<td>M231 </td><td>ERROR</td><td>Value &lt;isDefault&gt; not allowed for <em>'LEVEL'</em>.</td><td>Correct SVD. </td></tr>
<tr>
<td>M232 </td><td>ERROR</td><td>Tag &lt;<em>'TAG'&gt;</em> name <em>'NAME'</em> must not have specifier <em>'CHAR'</em>. Ignoring entry."</td><td>Correct SVD. </td></tr>
<tr>
<td>M233 </td><td>ERROR</td><td>Parse error: &lt;<em>'TAG'&gt;</em> = <em>'VALUE'</em> </td><td>Correct SVD. </td></tr>
<tr>
<td>M234 </td><td>ERROR</td><td>No valid items found for <em>'LEVEL'</em> <em>'NAME'</em> </td><td>Correct SVD. </td></tr>
<tr>
<td>M235 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> cannot be an array.</td><td>Correct SVD. </td></tr>
<tr>
<td>M236 </td><td>ERROR</td><td>Expression for &lt;<em>'TAG'&gt;</em> <em>'NAME'</em> not allowed.</td><td>Correct SVD. </td></tr>
<tr>
<td>M237 </td><td>ERROR</td><td>Nameless <em>'LEVEL'</em> must have &lt;<em>'TAG'&gt;</em>.</td><td>Correct SVD. </td></tr>
<tr>
<td>M238 </td><td>ERROR</td><td><em>'LEVEL'</em> must not have &lt;<em>'TAG'&gt;</em>."</td><td>Correct SVD. </td></tr>
<tr>
<td>M239 </td><td>ERROR</td><td>Dimed <em>'LEVEL'</em> <em>'NAME'</em> must have an expression.</td><td>Correct SVD. </td></tr>
<tr>
<td>M240 </td><td>ERROR</td><td>Tag &lt;<em>'TAG'&gt;</em> unknown or not allowed on <em>'LEVEL2'</em>:<em>'LEVEL'</em>.</td><td>Correct SVD. </td></tr>
<tr>
<td>M241 </td><td>ERROR</td><td>Parse Error: <em>'VALUE'</em> invalid for Array generation</td><td>Correct SVD. </td></tr>
<tr>
<td>M242 </td><td>WARNING</td><td><em>'LEVEL'</em> <em>'NAME'</em> &lt;dimArrayIndex&gt; found, but no &lt;dim&gt;</td><td>Correct SVD. </td></tr>
<tr>
<td>M243 </td><td>WARNING</td><td><em>'LEVEL'</em> <em>'NAME'</em> &lt;dimArrayIndex&gt; found, but &lt;dim&gt; does not describe an array</td><td>Correct SVD. </td></tr>
</table>
<h2>Data Check Errors </h2>
<table  class="cmtable" summary="Data Check Errors">
<tr>
<th>Message Number </th><th>Type </th><th>Message Text </th><th>Action  </th></tr>
<tr>
<td>M301 </td><td>ERROR</td><td>Interrupt number <em>'NUM'</em> : <em>'NAME'</em> already defined: <em>'NAME2'</em> <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M302 </td><td>ERROR</td><td>Size of Register <em>'NAME'</em>:<em>'NUM'</em> must be 8, 16 or 32 Bits</td><td></td></tr>
<tr>
<td>M303 </td><td>WARNING</td><td>Register name <em>'NAME'</em> is prefixed with Peripheral name <em>'NAME2'</em> </td><td>RegName = USART_CR ==&gt; USART-&gt;USART_CR </td></tr>
<tr>
<td>M304 </td><td>WARNING</td><td>Interrupt number overwrite: <em>'NUM'</em> : <em>'NAME'</em> <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M305 </td><td>ERROR</td><td>Name not C compliant: <em>'NAME'</em> : <em>'HEX'</em>, replaced by '_'</td><td></td></tr>
<tr>
<td>M306 </td><td>ERROR</td><td>Schema Version not set for &lt;device&gt;.</td><td></td></tr>
<tr>
<td>M307 </td><td>ERROR</td><td>Name is equal to Value: <em>'NAME'</em> </td><td></td></tr>
<tr>
<td>M308 </td><td>ERROR</td><td>Number of &lt;dimIndex&gt; Elements <em>'NUM'</em> is different to number of &lt;dim&gt; instances <em>'NUM2'</em> </td><td></td></tr>
<tr>
<td>M309 </td><td>ERROR</td><td>Field <em>'NAME'</em>: Offset error: <em>'NUM'</em> </td><td></td></tr>
<tr>
<td>M310 </td><td>ERROR</td><td>Field <em>'NAME'</em>: BitWidth error: <em>'NUM'</em> </td><td></td></tr>
<tr>
<td>M311 </td><td>ERROR</td><td>Field <em>'NAME'</em>: Calculation: MSB or LSB == -1</td><td></td></tr>
<tr>
<td>M312 </td><td>ERROR</td><td>Address Block missing for Peripheral <em>'NAME'</em> </td><td></td></tr>
<tr>
<td>M313 </td><td>ERROR</td><td>Field <em>'NAME'</em>: LSB &gt; MSB: BitWith calculates to <em>'NUM'</em> </td><td></td></tr>
<tr>
<td>M314 </td><td>ERROR</td><td>Address Block: &lt;offset&gt; or &lt;size&gt; not set.</td><td></td></tr>
<tr>
<td>M315 </td><td>ERROR</td><td>Address Block: &lt;size&gt; is zero.</td><td></td></tr>
<tr>
<td>M316 </td><td>ERROR</td><td><em>'LEVEL'</em> &lt;name&gt; not set.</td><td></td></tr>
<tr>
<td>M317 </td><td>WARNING</td><td><em>'LEVEL'</em> &lt;description&gt; not set.</td><td></td></tr>
<tr>
<td>M318 </td><td>WARNING</td><td><em>'LEVEL'</em> <em>'NAME'</em> &lt;<em>'TAG'&gt;</em> is equal to &lt;name&gt;</td><td></td></tr>
<tr>
<td>M319 </td><td>WARNING</td><td><em>'LEVEL'</em> &lt;<em>'TAG'&gt;</em> <em>'NAME'</em> ends with newline, is this intended?</td><td></td></tr>
<tr>
<td>M320 </td><td>WARNING</td><td><em>'LEVEL'</em> &lt;description&gt; <em>'NAME'</em> is not very descriptive</td><td></td></tr>
<tr>
<td>M321 </td><td>WARNING</td><td><em>'LEVEL'</em> &lt;<em>'ITEM'&gt;</em> <em>'NAME'</em> starts with '_', is this intended?</td><td></td></tr>
<tr>
<td>M322 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'ITEM'</em> <em>'NAME'</em> is meaningless text. Deleted.</td><td></td></tr>
<tr>
<td>M323 </td><td>WARNING</td><td><em>'LEVEL'</em> &lt;<em>'ITEM'&gt;</em> <em>'NAME'</em> contains text <em>'TEXT'</em> </td><td></td></tr>
<tr>
<td>M324 </td><td>ERROR</td><td>Field <em>'NAME'</em> <em>'BITRANGE'</em> does not fit into Register <em>'NAME2'</em>:<em>'NUM'</em> <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M325 </td><td>ERROR</td><td>CPU Revision is not set"</td><td></td></tr>
<tr>
<td>M326 </td><td>ERROR</td><td>Endianess is not set, using default (little)</td><td></td></tr>
<tr>
<td>M327 </td><td>ERROR</td><td>NVIC Prio Bits not set or wrong value, must be 2..8. Using default (4)</td><td></td></tr>
<tr>
<td>M328 </td><td>WARNING</td><td><em>'LEVEL'</em> <em>'NAME'</em> has no Registers, ignoring <em>'LEVEL'</em>.</td><td></td></tr>
<tr>
<td>M329 </td><td>ERROR</td><td>CPU Type is not set, using default (Cortex-M3)</td><td></td></tr>
<tr>
<td>M330 </td><td>ERROR</td><td>Interrupt <em>'NAME'</em> Number not set.</td><td></td></tr>
<tr>
<td>M331 </td><td>ERROR</td><td>Interrupt <em>'NAME'</em> Number <em>'NUM'</em> greater 239.</td><td></td></tr>
<tr>
<td>M332 </td><td>WARNING</td><td><em>'LEVEL'</em> <em>'NAME'</em> has only one Register.</td><td></td></tr>
<tr>
<td>M333 </td><td>ERROR</td><td>Duplicate &lt;enumeratedValue&gt; <em>'NUM'</em>: <em>'NAME'</em> (<em>'USAGE'</em>), already used by <em>'NAME2'</em> (<em>'USAGE2'</em>) <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M334 </td><td>WARNING</td><td><em>'LEVEL'</em> &lt;<em>'ITEM'&gt;</em> <em>'NAME'</em> is very long, use &lt;description&gt; and a shorter &lt;name&gt;</td><td></td></tr>
<tr>
<td>M335 </td><td>ERROR</td><td>Value <em>'NAME'</em>:<em>'NUM'</em> does not fit into field <em>'NAME2'</em> <em>'BITRANGE'</em>.</td><td></td></tr>
<tr>
<td>M336 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> already defined <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M337 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> already defined <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M338 </td><td>ERROR</td><td>Field <em>'NAME'</em> <em>'BITRANGE'</em> (<em>'ACCESS'</em>) overlaps <em>'NAME2'</em> <em>'BITRANGE2'</em> (<em>'ACCESS2'</em>) <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M339 </td><td>ERROR</td><td>Register <em>'NAME'</em> (<em>'ACCESS'</em>) (@<em>'ADDRSIZE'</em>) has same address or overlaps <em>'NAME2'</em> (<em>'ACCESS2'</em>) (@<em>'ADDRSIZE2'</em>) <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M340 </td><td>ERROR</td><td>No Devices found.</td><td></td></tr>
<tr>
<td>M341 </td><td>ERROR</td><td>More than one devices found, only one is allowed per SVD File.</td><td></td></tr>
<tr>
<td>M342 </td><td>ERROR</td><td>Dim-extended <em>'LEVEL'</em> <em>'NAME'</em> must not have &lt;headerStructName&gt;</td><td></td></tr>
<tr>
<td>M343 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> (@<em>'ADDR'</em>) has same address as <em>'NAME2'</em> <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M344 </td><td>ERROR</td><td>Register <em>'NAME'</em> (@<em>'ADDRSIZE'</em>) is outside or does not fit any &lt;addressBlock&gt; specified for Peripheral <em>'NAME2'</em> <br/>
 <em>'TEXT'</em> </td><td></td></tr>
<tr>
<td>M345 </td><td>ERROR</td><td>Field <em>'NAME'</em> <em>'BITRANGE'</em> does not fit into Register <em>'NAME2'</em>:<em>'NUM'</em> </td><td></td></tr>
<tr>
<td>M346 </td><td>WARNING</td><td>Register <em>'NAME'</em> (@<em>'ADDR'</em>) offset is equal or is greater than it's Peripheral base address <em>'NAME2'</em> (@<em>'ADDR2'</em>), is this intended?</td><td></td></tr>
<tr>
<td>M347 </td><td>WARNING</td><td>Field <em>'NAME'</em> (width &lt; 6Bit) without any &lt;enumeratedValue&gt; found.</td><td></td></tr>
<tr>
<td>M348 </td><td>ERROR</td><td>Alternate <em>'LEVEL'</em> <em>'NAME'</em> does not exist at <em>'LEVEL'</em> address (@<em>'ADDR'</em>)</td><td></td></tr>
<tr>
<td>M349 </td><td>ERROR</td><td>Alternate <em>'LEVEL'</em> <em>'NAME'</em> is equal to <em>'LEVEL'</em> name <em>'NAME2'</em> </td><td></td></tr>
<tr>
<td>M350 </td><td>WARNING</td><td>Peripheral <em>'NAME'</em> (@<em>'ADDR'</em>) is not 4Byte-aligned.</td><td></td></tr>
<tr>
<td>M351 </td><td>WARNING</td><td>Peripheral <em>'TYPE'</em> <em>'NAME'</em> is equal to Peripheral name.</td><td></td></tr>
<tr>
<td>M352 </td><td>WARNING</td><td>AddressBlock of Peripheral <em>'NAME'</em> (@<em>'ADDR'</em>) <em>'TEXT'</em> overlaps <em>'NAME2'</em> (@<em>'ADDR2'</em>) <em>'TEXT2'</em> <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M353 </td><td>WARNING</td><td>Peripheral group name <em>'NAME'</em> should not end with '_'</td><td></td></tr>
<tr>
<td>M354 </td><td>ERROR</td><td>Interrupt '<em>'NUM'</em>:<em>'NAME'</em> specifies a Core Interrupt. Core Interrupts must not be defined, they are set through &lt;cpu&gt;&lt;name&gt;.</td><td></td></tr>
<tr>
<td>M355 </td><td>ERROR</td><td>No Interrupts found on pos. 0..15. External (Vendor-)Interrupts possibly defined on position 16+. External Interrupts must start on position 0</td><td></td></tr>
<tr>
<td>M356 </td><td>WARNING</td><td>No Interrupt definitions found.</td><td></td></tr>
<tr>
<td>M357 </td><td>ERROR</td><td>Core Interrupts found. Interrupt Numbers are wrong. Internal Interrupts must not be described, External Interrupts must start at 0.</td><td></td></tr>
<tr>
<td>M358 </td><td>ERROR</td><td>AddressBlock of Peripheral <em>'NAME'</em> <em>'TEXT'</em> overlaps AddressBlock <em>'TEXT2'</em> in same peripheral <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M359 </td><td>ERROR</td><td>Address Block: &lt;usage&gt; not set.</td><td></td></tr>
<tr>
<td>M360 </td><td>ERROR</td><td>Address Block: found &lt;<em>'TAG'&gt;</em> (<em>'HEXNUM'</em>) &gt; <em>'HEXNUM2'</em>.</td><td></td></tr>
<tr>
<td>M361 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'ITEM'</em> <em>'NAME'</em>: 'RESERVED' items must not be defined.</td><td></td></tr>
<tr>
<td>M362 </td><td>WARNING</td><td><em>'LEVEL'</em> <em>'ITEM'</em> <em>'NAME'</em>: 'RESERVED' items must not be defined.</td><td></td></tr>
<tr>
<td>M363 </td><td>ERROR</td><td>CPU: &lt;sauNumRegions&gt; not set.</td><td></td></tr>
<tr>
<td>M364 </td><td>ERROR</td><td>CPU: &lt;sauNumRegions&gt; value <em>'NUM'</em> greater than SAU max num (<em>'NUM2'</em>)</td><td></td></tr>
<tr>
<td>M365 </td><td>WARNING</td><td>Register <em>'NAME'</em> (<em>'ACCESS'</em>) (@<em>'ADDRSIZE'</em>) has same address or overlaps <em>'NAME2'</em> (<em>'ACCESS2'</em>) (@<em>'ADDRSIZE2'</em>) <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M366 </td><td>ERROR</td><td>Register <em>'NAME'</em> size (<em>'NUM'Bit</em>) is greater than &lt;dimIncrement&gt; * &lt;addressBitsUnits&gt; (<em>'NUM2'Bit</em>).</td><td></td></tr>
<tr>
<td>M367 </td><td>WARNING</td><td>Access Type: Field <em>'NAME'</em> (<em>'ACCESS'</em>) does not match Register <em>'NAME2'</em> (<em>'ACCESS2'</em>)</td><td></td></tr>
<tr>
<td>M368 </td><td>WARNING</td><td><em>'LEVEL'</em> <em>'NAME'</em> (@<em>'ADDR'</em>) has same address as <em>'NAME2'</em> <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M369 </td><td>ERROR</td><td>Enumerated Value <em>'NAME'</em>: &lt;value&gt; not set.</td><td></td></tr>
<tr>
<td>M370 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em>: &lt;offset&gt; not set.</td><td></td></tr>
<tr>
<td>M371 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> &lt;headerStructName&gt; is equal to hirachical name</td><td></td></tr>
<tr>
<td>M372 </td><td>ERROR</td><td><em>'LEVEL'</em> &lt;<em>'TAG'&gt;</em> <em>'NAME'</em> already defined <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M373 </td><td>ERROR</td><td><em>'LEVEL'</em> &lt;<em>'TAG'&gt;</em> <em>'NAME'</em> already defined <em>'LINE'</em> </td><td></td></tr>
<tr>
<td>M374 </td><td>WARNING</td><td>&lt;enumeratedValues&gt; can be one &lt;enumeratedValues&gt; container for all &lt;enumeratedValue&gt;s, where &lt;usage&gt; can be read, write, or read-write or two &lt;enumeratedValues&gt; containers, where one is set to &lt;usage&gt; read and the other is set to &lt;usage&gt; write</td><td></td></tr>
<tr>
<td>M375 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> (&lt;enumeratedValues&gt; <em>'NAME2'</em>): Too many &lt;enumeratedValues&gt; container specified.</td><td></td></tr>
<tr>
<td>M376 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> (&lt;enumeratedValues&gt; <em>'NAME2'</em>): <em>'USAGE'</em> container already defined in <em>'LINE'</em>.</td><td></td></tr>
<tr>
<td>M377 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em> (&lt;enumeratedValues&gt; <em>'NAME2'</em>): <em>'USAGE'</em> container conflicts with <em>'NAME3'</em> <em>'LINE'</em>.</td><td></td></tr>
<tr>
<td>M378 </td><td>ERROR</td><td>Register Array: Register <em>'NAME'</em> size (<em>'NUM'Bit</em>) does not match &lt;dimIncrement&gt; (<em>'NUM2'Bit</em>).</td><td></td></tr>
<tr>
<td>M379 </td><td>ERROR</td><td>XBin Number <em>'NAME'</em> too large, skipping evaluation.</td><td></td></tr>
<tr>
<td>M380 </td><td>ERROR</td><td>AddressBlock of Peripheral <em>'NAME'</em> (@<em>'ADDR'</em>) <em>'TEXT'</em> does not fit into 32Bit Address Space.</td><td></td></tr>
<tr>
<td>M381 </td><td>ERROR</td><td>Interrupt <em>'NAME'</em> Number <em>'NUM'</em> greater or equal deviceNumInterrupts (<em>'NUM2'</em>).</td><td></td></tr>
<tr>
<td>M382 </td><td>ERROR</td><td><em>'LEVEL'</em> <em>'NAME'</em>: <em>'NAME2'</em> <em>'HEXNUM'</em> does not fit into <em>'LEVEL'</em> width: <em>'NUM'</em> Bit.</td><td></td></tr>
</table>
<h2>Data modification errors </h2>
<table  class="cmtable" summary="SfrCC2 related Data modification Errors">
<tr>
<th>Message Number </th><th>Type </th><th>Message Text </th><th>Action  </th></tr>
<tr>
<td>M517 </td><td>WARNING</td><td>SFD Code generation: Forbidden Trigraph '??CHAR' found in <em>'NAME'</em>.</td><td></td></tr>
<tr>
<td>M516 </td><td>WARNING</td><td>SFD Code generation: Unsupported character found in <em>'NAME'</em> : <em>'HEX'</em>.</td><td></td></tr>
<tr>
<td>M518 </td><td>WARNING</td><td>SFD Code generation: Unsupported ESC sequence found in <em>'NAME'</em> : <em>'CHAR'</em>.</td><td></td></tr>
</table>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">
      <script type="text/javascript">
        <!--
        writeFooter.call(this);
        //-->
      </script>    
    </li>
  </ul>
</div>
</body>
</html>
